//
//  CSSCommonTools.swift
//  weibo28
//
//  Created by chushushan on 16/5/14.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

//切换根视图控制器的通知名称
let SwitchRootVCNotification = "SwitchRootVCNotification"

//获取屏幕的宽度和高度
let ScreenWidth = UIScreen.mainScreen().bounds.size.width
let ScreenHeight = UIScreen.mainScreen().bounds.size.height


//产生随机色

func RandomColor() -> UIColor {
    
    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256

    return UIColor(red: CGFloat(red)/255, green: CGFloat(green)/255, blue: CGFloat(blue)/255, alpha: 1.0)
    
}


